<!--
 * @Author: ljc
 * @Date: 2023-05-05 14:09:40
 * @LastEditors: g05047
 * @LastEditTime: 2023-07-05 14:15:35
 * @Description: 任务详情专家列表
-->
<template>
  <div style="height: 100%;">
    <rk-grid ref="taskDetilExpertRef"
      :boxConfig='false'
      :data="expertList"
      :columns="tableColumns"
      :pagerConfig='false'>
    </rk-grid>
  </div>
</template>
<script setup>
import { nextTick, ref } from "vue";

const props = defineProps({
  expertList: { type: Array, default: [] }
})
const taskDetilExpertRef = ref(null)
const tableColumns = ref([
  { field: 'name', title: '姓名', width: 120, align: 'center', },
  {
    field: 'sex', title: '姓别', width: 120, align: 'center', formatter: ({ cellValue }) => {
      let sex = cellValue
      if (sex) {
        sex = cellValue == 1 ? '男' : '女'
      } else {
        sex = ''
      }
      return sex
    }
  },
  { field: 'age', title: '年龄', width: 120, align: 'center', },
  { field: 'title', title: '职称', width: 120, align: 'center', },
  { field: 'taskNum', title: '参与评审任务次数', width: 150, align: 'center', },
  { field: 'applyNum', title: '参与评审项目数', width: 150, align: 'center', },
  { field: 'phone', title: '手机号', width: 250, align: 'center', },
  { field: 'idCard', title: '身份证号', width: 250, align: 'center', },
  { field: 'introduction', title: '简介', width: 250, align: 'left', },
])
</script>
<style lang="scss" scoped>
</style>